<template>
    <div>
  <van-nav-bar title="标题" left-text="返回" left-arrow @click-left="onClickLeft" />
  主页
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
let router=new useRouter()
 const onClickLeft = () => router.go(-1);
</script>

<style lang="scss" scoped>

</style>